#set(title="用户中心")
#@layout()

#define body()
<div style="height: 50px"></div>
<div class="user-container">
    <div class="info-container">
        <form class="layui-form" action="">

            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-block">
                    <span class="layui-form-mid">#(user.username)</span>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                    <span class="layui-form-mid">#(user.pname)</span>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <span class="layui-form-mid">#(user.gender)</span>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">电话</label>
                <div class="layui-input-block">
                    <span class="layui-form-mid">#(user.phone)</span>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">公司</label>
                <div class="layui-input-block">
                    <span class="layui-form-mid">#(user.company)</span>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">地址</label>
                <div class="layui-input-block">
                    <span class="layui-form-mid">#(user.address)</span>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <a class="layui-btn layui-btn-danger" href="/user/edit">编辑</a>
                </div>
            </div>

        </form>
    </div>

    <div class="avator-container">
        <img src="/img/userimg/#(user.avator)" class="avator">
    </div>

</div>
#end

#define css()
<link rel="stylesheet" href="/assets/css/user.css">
#end


#define js()
<script src="/assets/js/user.js"></script>
#end